import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Date 2018/07/06
 *
 * @author MT-Lin
 */
@SuppressWarnings("ALL")
public class DemoProviderMain {

    public static void main(String[] args) {
        System.setProperty("java.net.preferIPv4Stack", "true");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                new String[]{"META-INF/spring/dubbo-demo-provider.xml"});
        context.start();

        try {
            // 按任意键退出
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
